<%= form_remote_tag( 
	:update => 'msg',
	:url => auth_url(:action => 'remotelogin'),
    :loading => "$('ident_spinner').show()",
    :complete => "$('ident_spinner').hide(); $('loginform').hide(); document.location='/mind/friends/list';")%>
<table cellpadding="3" cellspacing="3" border="0" class="login">
<tr><td><%= spinner_tag %></td>
    <td><%= text_field_tag "login", _("Login"), { :size => 20, :class=>"username"} %></td>
    <td></td>
    <td><%= password_field_tag "password", _("Password"), { :size => 20, :class=>"password" } %><br /></td>
    <td><input type="submit" class="gbutton" value="<%=_ 'Tune in'%>" %></td>
</tr>
<tr><td></td>
    <td colspan="5">
        <%= link_to (_ 'Forgot your password?'), auth_url(:action => 'lostpassword') %>
       	<% if app_config[:allow_self_registration] %>
    	&nbsp;<%= link_to (_ 'Create an account?'), auth_url(:action => 'signup') %>
    	<% end %>    
    </td>
</tr></table>
</form>
